import request from '@/utils/request'



export function platformChemicalList(data) { //列表
  return request({
    url: '/project-quality/api/production/chemicals/page',
    method: 'post',
    data
  })
}
export function platformChemicalAdd(data) { //新增
  return request({
    url: '/project-quality/api/production/chemicals/add',
    method: 'post',
    data
  })
}

export function platformChemicalEdit(data) { //编辑
  return request({
    url: '/project-quality/api/production/chemicals/edit',
    method: 'post',
    data
  })
}
export function platformChemicalDelete(id) { //删除
  return request({
    url: '/project-quality/api/production/chemicals/del/'+id,
    method: 'GET',
  })
}
export function platformChemicalDetail(id) { //单条查询
  return request({
    url: '/project-quality/api/production/chemicals/'+id,
    method: 'GET',
  })
}

export function  platformChemicalExport(data) { //导出
    return request({
        url: '/project-quality/api/production/chemicals/export',
        responseType: 'arraybuffer',
        method: 'POST',
        data,
    })
  }
  